-- GENERATED SPELL FOR [Gurubashi Headhunter] --


function spell0_11351(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(24049,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11351', 10000, 1)
end

function spell1_11351(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(15708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11351', 5296, 1)
end

function spell2_11351(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(22887,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11351', 668, 1)
end

function spell3_11351(pUnit, Event) --@Whirling Trip,Self--
pUnit:FullCastSpellOnTarget(24048,pUnit)
pUnit:RegisterEvent('Sorts_11351', 2253, 1)
end

function Sorts_11351(pUnit, Event)
local choix_sorts_11351 = math.random(0, 3)
if choix_sorts_11351 == 0 then
pUnit:RegisterEvent('spell0_11351', 1, 1)
end
if choix_sorts_11351 == 1 then
pUnit:RegisterEvent('spell1_11351', 1, 1)
end
if choix_sorts_11351 == 2 then
pUnit:RegisterEvent('spell2_11351', 1, 1)
end
if choix_sorts_11351 == 3 then
pUnit:RegisterEvent('spell3_11351', 1, 1)
end
end

function mob11351_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11351', math.random(1500, 3000), 1)
end

function mob11351_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11351_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11351_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11351, 1, 'mob11351_Action')
RegisterUnitEvent(11351, 2, 'mob11351_Leave')
RegisterUnitEvent(11351, 3, 'mob11351_Kill')
RegisterUnitEvent(11351, 4, 'mob11351_Die')
